import http from '@/common/utils/request.js'

export const order = {
	//查看订单
	getOrderList(data){
		return http.get('pay/order/', {params:data, custom:{}})
	},
	//查看采购订单
	getOrderListForStock(data){
		return http.get('pay/orderForStock/', {params:data, custom:{}})
	},
	//查看骑手订单
	getOrderForRider(data){
		return http.get('pay/orderForRider/', {params:data, custom:{}})
	},
	//收益记录
	findMoneyChangeList(data){
		return http.get('fundOrder/', {params:data, custom:{}})
	},
	//提现记录
	outMoneyList(data){
		return http.get('/outMoneyList/', {params:data, custom:{}})
	},
	//查看订单信息
	getOrderInfoByOrderId(data){
		return http.post('/pay/order/getOrderInfoByOrderId/', data, {custom:{}})
	},
	//发货
	sendItem(data){
		return http.post('/pay/order/sendItem/', data, {custom:{}})
	},
	//确认收货
	finishOrder(data){
		return http.post('/pay/order/finishOrder/', data, {custom:{}})
	},
	//换货
	returnItem(data){
		return http.post('/itemOrder/returnItem/', data, {custom:{}})
	},
	//提现
	outMoneyForBag(data){
		return http.post('/outMoney/outMoneyForBag/', data, {custom:{}})
	},
	//查看提货订单
	getTicketOrderList(data){
		return http.get('tickerOrder/', {params:data, custom:{}})
	},
	//确认提货
	confirmReceiptIickerItem(data){
		return http.post('/tickerOrder/confirmReceiptItem/', data, {custom:{}})
	},
	// 骑手接单
	getOrder(data){
		return http.post('/pay/orderForRider/getOrder/', data, {custom:{}})
	},
	// 骑手开始配送
	sendItemForRider(data){
		return http.post('/pay/orderForRider/sendItemForRider/', data, {custom:{}})
	},
	//订单状态转变
	changeOrderStatus(data){
		return http.post('/pay/orderForRider/changeOrderStatus/', data, {custom:{}})
	},
}